LiveTranscodingRegion class Null safety
单个视频流在合流中的布局信息。
Constructors
- LiveTranscodingRegion({required String uid, required String roomId, required double x, required double y, required double w, required double h, int zorder = 0, double alpha = 1.0, TranscoderContentControlType contentControl = TranscoderContentControlType.hasAudioAndVideo, VideoRenderMode renderMode = VideoRenderMode.hidden, required bool localUser, bool isScreen = false, TranscoderLayoutRegionType type = TranscoderLayoutRegionType.videoStream, Uint8List? data, TranscoderLayoutRegionDataParam? dataParam})
Properties
- alpha ↔ double
-
透明度,范围为
[0.0, 1.0]。read / write - contentControl ↔ TranscoderContentControlType
-
合流转推包含内容
read / write
- data ↔ Uint8List?
-
图片合流区域类型对应的数据
read / write
- dataParam ↔ TranscoderLayoutRegionDataParam?
-
合流布局区域数据的对应参数
read / write
- h ↔ double
-
用户视频高度相对用户原始视频高度的比例。相对值,范围为
[0.0, 1.0]。read / write - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isScreen ↔ bool
-
是否是屏幕共享流
read / write
- localUser ↔ bool
-
是否是本地用户
read / write
- renderMode ↔ VideoRenderMode
-
渲染模式
read / write
- roomId ↔ String
-
房间 ID 。必填。
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- type ↔ TranscoderLayoutRegionType
-
合流布局区域类型
read / write
- uid ↔ String
-
视频流发布用户的用户 ID 。
read / write
- w ↔ double
-
用户视频宽度相对用户原始视频宽度的比例。相对值,范围为
[0.0, 1.0]。read / write - x ↔ double
-
用户视频布局相对画布左侧的偏移量。相对值,范围为
[0.0, 1.0]。read / write - y ↔ double
-
用户视频布局相对画布顶端的偏移量。相对值,范围为
[0.0, 1.0]。read / write - zorder ↔ int
-
用户视频布局在画布中的层级。0为底层,值越大越上层,范围为
[0, 100]。read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited